
/***token***/
// 获得token
export const getToken = () => {
  return () => {
    return localStorage.getItem('token');
  }
}
//存储token
export const saveToken = (token) => {
  return localStorage.setItem('token',token);
}
// 清除token
export const removeToken = () => {
  return localStorage.clearToken('token');
}



/***用户信息***/
//获取用户信息
export const getUserInfo = () => {
  return localStorage.getItem('userInfo');
}
//存储用户信息
export const saveUserInfo = (userInfo) => {
  return localStorage.setItem('userInfo',userInfo);
}
